ass Solution {
public:
    vector<string> buildArray(vector<int>& target, int n) {
        // 1  3
        // 1 2 3
        int target_size = target.size();
        vector<string> ret;
        vector<int> judge;
        auto it = target.begin();
        for(int i=1;i<=n;i++)
        {
            if(*it == i)
            {
                ret.push_back("Push");
                judge.push_back(i);
                it++;
            }
            else
            {
                ret.push_back("Push");
                ret.push_back("Pop");
            }
            if(judge.size() == target.size())
            return ret;
        }
        return ret;
    }
};
